//
//  FriendCell.m
//  BuffetNews
//
//  Created by 大大大鸿哥 on 14/11/10.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "FriendCell.h"

@implementation FriendCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.myImgView = [[UIImageView alloc]init];
        self.myLabel = [[UILabel alloc]init];
        
        [self.contentView addSubview:self.myImgView];
        [self.contentView addSubview:self.myLabel];
        
        [_myImgView release];
        [_myLabel release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImgView.frame = CGRectMake(10, 10, self.contentView.frame.size.width / 4 - 20, self.contentView.frame.size.height - 20);
    
    self.myLabel.frame = CGRectMake(self.frame.size.width / 4, 10, self.contentView.frame.size.width / 3 * 2, self.contentView.frame.size.height - 20);
    self.myLabel.font = [UIFont systemFontOfSize:15];
}
- (void)awakeFromNib {
    // Initialization code
}
- (void)dealloc
{
    [_myImgView release];
    [_myLabel release];
    [super dealloc];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
